<template>
  <div class="auth-layout">
    <div class="auth-container">
      <div class="auth-header">
        <router-link to="/" class="logo">
          <h1>橘子文学网</h1>
        </router-link>
      </div>
      
      <div class="auth-content">
        <router-view />
      </div>
      
      <div class="auth-footer">
        <p>&copy; 2025 橘子文学网. All rights reserved.</p>
      </div>
    </div>
    
    <!-- 背景装饰 -->
    <div class="auth-bg">
      <div class="bg-pattern"></div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 认证布局组件
</script>

<style lang="scss" scoped>
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.auth-container {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-2xl);
  width: 100%;
  max-width: 400px;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  
  .logo {
    text-decoration: none;
    color: var(--text-primary);
    
    h1 {
      font-size: var(--font-size-2xl);
      font-weight: bold;
      margin: 0;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
  }
}

.auth-content {
  margin-bottom: var(--spacing-xl);
}

.auth-footer {
  text-align: center;
  
  p {
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
    margin: 0;
  }
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  
  .bg-pattern {
    position: absolute;
    inset: -50%;
    background-image: 
      radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media (max-width: 480px) {
  .auth-container {
    margin: var(--spacing-md);
    padding: var(--spacing-xl);
  }
}
</style> 